package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.field.FieldAttrEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author: wufeng
 * @date: 2018/11/16 14:02
 * @desrcption: es聚合sum计算
 */
@Getter
@Setter
@ToString
public class AggSumDTO implements Serializable {

    private static final long serialVersionUID = -7345308137795524630L;

    private String attr;

    private String name;

    public AggSumDTO(String attr, String name, String field) {
        this.attr = attr;
        this.name = name;
        this.field = field;
    }

    public AggSumDTO() {
    }

    /**
     * 累加的字段key
     * data.num_1
     * data.subForm_1.num_1
     */
    private String field;

    private FieldAttrEntity fieldAttrEntity;

}
